#include <allegro.h>

#include "Engine.h"
#include "CustomModel.h"
#include "GameState.h"

#include "InitGame.h"
#include "GameRunning.h"
#include "GamePaused.h"

int main(void)
{

	GameState * states[3] = {new GameState("init"), new GameState("paused"), new GameState("running")};
	GameRoutine * routines[3] = {new InitGame(*states[0]), new GamePaused(*states[1]), new GameRunning(*states[2])};

	CustomModel model;
	Engine engine(&model);
	for(unsigned int i = 0; i < 3; ++i)
	{
		engine.addGameState( *states[i] );
		engine.addGameRoutine(routines[i]);
	}
	
	//engine.addGameRoutine(routines[2]);

	engine.initializeGame();

	return 0;
}

END_OF_MAIN()
